package cn.szzsi._admin;

import cn.szzsi.core.interceptor.CommonInterceptor;
import com.jfinal.config.Routes;

/**
 * 后台管理路由
 * 注意：自 jfinal 3.0 开始，baesViewPath 改为在 Routes 中独立配置
 *      并且支持 Routes 级别的 Interceptor，这类拦截器将拦截所有
 *      在此 Routes 中添加的 Controller，行为上相当于 class 级别的拦截器
 *      Routes 级别的拦截器特别适用于后台管理这样的需要统一控制权限的场景
 *      减少了代码冗余
 */
public class _AdminRoutes extends Routes {

	public void config() {
		// 添加后台管理拦截器，将拦截在此方法中注册的所有 Controller
		addInterceptor(new CommonInterceptor());
		//addInterceptor(new UserPermissionInterceptor());
		setBaseViewPath("/_view/_admin");
		add("/mall/memberCenter", MemberCenterController.class,"/main");
		add("/password", PasswordController.class,"/password");
		add("/mall/admin/activities", ActivityController.class,"/");
		add("/mall/admin/adManage", AdManageController.class,"/admanage");
		add("/mall/admin/areaSystem", AreaSystemController.class,"/areaSyatem");
		add("/mall/admin/articlecategory", ArticleCategoryController.class,"/articlecategory");
		add("/mall/admin/article", ArticleController.class,"/article");
		add("/mall/admin/balancedetail",UserBalanceDetailController.class,"/balancedetail");
		add("/mall/admin/brand", BrandController.class,"/brand");
		add("/mall/admin/brandmember",BrandMemberController.class,"/brandmember");
		add("/mall/admin/brandStoreCategory", BrandStoreCategoryController.class,"/brandstorecategory");
		add("/mall/admin/businessmember", MemberController.class,"/businessmember");
		add("/mall/admin/businessapp",BusinessAppController.class,"/weixin");
		add("/mall/admin/customerService",CustomerServiceController.class,"customerservice");
		add("/mall/admin/dataStatistics", DataStatisticsController.class);
		add("/mall/admin/deliveryType", DeliveryTypeController.class,"/deliverytype");
		add("/mall/admin/distribution", DistributionGradeController.class);
		add("/mall/admin/dividend", DividendController.class,"/dividend");
		add("/mall/admin/feedback", UserFeedBackController.class,"/customerservice");
		add("/mall/admin/feedbackreply", UserFeedBackReplyController.class,"/customerservice");
		add("/mall/admin/friendLink", FriendLinkController.class,"/friendlink");
		add("/mall/admin/generate", GenerateController.class,"/generate");
		add("/mall/admin/ip",IpController.class,"/userip");
		add("/mall/admin/memberrank", MemberRankController.class,"/memberrank");
		add("/mall/admin/imgMeterial",ImgMaterialController.class,"/imgmaterial");
		add("/mall/admin/navigation", NavigationController.class,"/navigation");
		add("/mall/admin/operateLogs", OperateLogsController.class,"/operatelogs");
		add("/mall/admin/orderManage", OrderController.class,"/order");
		add("/mall/admin/paymentConfig", PaymentConfigController.class,"/paymentconfig");
		add("/mall/admin/paymentManage", PaymentController.class,"/paymentmanage");
		add("/mall/admin/pics", PicsController.class,"/pics");
		add("/mall/admin/productAttribute", ProductAttributeController.class,"/productattribute");
		add("/mall/admin/productCategroy", ProductCategoryController.class,"/productcategory");
		add("/mall/admin/tagCategroy", TagCategoryController.class,"/tagctcategory");
		add("/mall/admin/product", ProductController.class,"/product");
		add("/mall/admin/productType", ProductTypeController.class,"/producttype");
		add("/mall/admin/refundManage", RefundController.class,"/refundmanage");
		add("/mall/admin/reshipManage", ReshipController.class,"/reshipmanage");
		add("/mall/admin/rewards", RewardsController.class,"/rewards");
		add("/mall/admin/shippingManage", ShippingController.class,"/shippingmanage");
		add("/mall/admin/siteconfig", SiteConfigController.class,"/siteconfig");
		add("/mall/admin/specification", SpecificationController.class,"/specification");
		add("/mall/admin/stats", StatsController.class,"/stats");
		add("/mall/admin/template", TemplateController.class,"/template");
		add("/mall/admin/toCashingManager", ToCashingController.class,"/tocashingmanage");
		add("/mall/admin/user", UserController.class,"/usermanage");
		add("/mall/admin/versionrecord", VersionRecordController.class,"/versionrecord");
		add("/mall/admin/SmsController", SmsController.class,"/product");
		add("/mall/admin/logistics", LogisticsController.class,"/logistics");


	}
}





